import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router)


export default new Router({
  mode: 'history',
  base: __dirname,
  routes: [{
      path: '/',
      name: 'index',
      component: resolve => require(['../views/login'], resolve),
      meta: {
        scrollToTop: true,
        navShow: false
      }
    },
    {
      path: '/home',
      name: 'home',
      component: resolve => require(['../views/home'], resolve),
      meta: {
        scrollToTop: true,
        navShow: true
      }
    },
    {
      path: '/add',
      name: 'add',
      component: resolve => require(['../views/addpatient'], resolve),
      meta: {
        scrollToTop: false,
        navShow: true
      }
    },
    {
      path: '/showCli',
      name: 'showCli',
      component: resolve => require(['../views/showCli'], resolve),
      meta: {
        scrollToTop: true,
        navShow: true
      }
    },
    {
      path: '/map',
      name: 'map',
      component: resolve => require(['../views/map'], resolve),
      meta: {
        scrollToTop: true,
        navShow: true
      }
    },
    {
      path: '*',
      name: 'page404',
      component: resolve => require(['../views/page404'], resolve),
      meta: {
        navShow: true
      }
    }

  ]
})
